//
//  PPScaleInstructionProvider.h
//  PPBlueToothDemo
//
//  Created by 彭思远 on 2020/8/1.
//  Copyright © 2020 彭思远. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "PPScaleDefine.h"
@class PPUserModel;
@class PPDeviceModel;
@class PPScaleFormatTool;
NS_ASSUME_NONNULL_BEGIN

@interface PPScaleInstructionProvider : NSObject

- (instancetype)initWithUserModel:(PPUserModel *)model;

- (NSData *)mtuUpdate;

- (NSData *)unitChangeInstructionByDeviceModel:(PPDeviceModel *)deviceModel;

- (NSData *)synchronisedTimeInstructionWithTimeZone:(NSInteger)zone;

- (NSData *)calcuteInScaleInstruction;

- (NSData *)getHistoryDataInstruction;

- (NSData *)delHistoryDataInstruction;

- (NSData *)exitBMDJInstruction;

- (NSData *)intoBMDJInstruction;

- (NSArray *)codesBySSID:(NSString *)ssid andPassword:(NSString *)password;

- (void)otaData:(NSData *)otaData handler:(void(^)(NSData * package, CGFloat progress))subPackageHandler;

- (NSArray *)codesByDNS:(NSString *)dns;
// 进入内码模式
- (NSData *)someCodeInstruction;

// 息屏休眠
- (NSData *)sleepModelInstruction;


- (NSArray *)torreSendUserInfo:(PPUserModel *)userModel ByMtu:(NSInteger)mtu;

- (NSArray *)torreSelectUser:(PPUserModel *)userModel ByMtu:(NSInteger)mtu;

- (NSArray *)torreDeletetUserByUserId:(NSString *)userId memberId:(NSString *)memberId andMtu:(NSInteger)mtu;

- (NSString *)torreSysTime;

+ (NSString *)torreChangeUnitInstruction:(PPUserUnit)unit;

+ (NSData *)caChangeUnit:(PPUserUnit)unitType;

+ (NSData *)caToZero;

+ (NSData *)caBuzzerGate:(BOOL)open;

+ (NSData *)caSetTime:(NSDate *)date;
@end

NS_ASSUME_NONNULL_END
